import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

let Login = () => import('../components/login/login')

//内部转账
let Transfer = () => import('../components/transfer/Transfer')

//修改密码
let Personal = () => import('../components/personal/personal')

let ForgetPass = () => import('../components/login/ForgetPass.vue')

//业务
let Business = () => import('../components/business/detail')

export default new Router({
	// mode: 'history',
	routes: [
		{
			path: '/',
			redirect: '/Personal'
		},
		{
			path:'/login',
			component: Login,
			children:[
				{
					path:'forgetPass',
					component: ForgetPass
				}
			]
		},
		{
			path:'/personal',
			component: Personal,
		},{
			path:'/transfer',
			component: Transfer
		},
		{
			path:'/business/:username?/:id?',
			component: Business
		}
	]
})
